import request from '@/utils/request'

// 查询构建页面列表
export function listFromBuildPage(query) {
  return request({
    url: '/generator/FromBuildPage/list',
    method: 'get',
    params: query
  })
}

// 查询构建页面详细
export function getFromBuildPage(id) {
  return request({
    url: '/generator/FromBuildPage/' + id,
    method: 'get'
  })
}

// 新增构建页面
export function addFromBuildPage(data) {
  return request({
    url: '/generator/FromBuildPage',
    method: 'post',
    data: data
  })
}

// 修改构建页面
export function updateFromBuildPage(data) {
  return request({
    url: '/generator/FromBuildPage',
    method: 'put',
    data: data
  })
}

// 删除构建页面
export function delFromBuildPage(id) {
  return request({
    url: '/generator/FromBuildPage/' + id,
    method: 'delete'
  })
}
